{% extends 'partials/base.html' %}
{% block title %}职员详细信息{% endblock %}
{% load crispy_forms_tags %}
{% block content %}
<div class="container">
    <div class="row my-4">
<!--        <div class="col-md-4">-->
<!--            &lt;!&ndash; 职员图像 &ndash;&gt;-->
<!--            <img class="img-thumbnail" src="{{ worker.profile.image.url }}" alt="profile-image">-->
<!--        </div>-->
        <div class="col-md-8">
            <div class="card">
                <div class="card-header bg-info text-white">
                    职员信息详情
                </div>
                <div class="row p-3">
                    <div class="col-md-12">
                        <table class="table table-borderless">
                            <tbody>
                            <tr>
                                <th scope="row">用户名</th>
                                <td>{{ worker.username }}</td>
                            </tr>
                            <tr>
                                <th scope="row">邮箱</th>
                                <td>{{ worker.email }}</td>
                            </tr>
                            <tr>
                                <th scope="row">电话</th>
                                <td>{{ worker.profile.phone }}</td>
                            </tr>
                            <tr>
                                <th scope="row">地址</th>
                                <td>{{ worker.profile.address }}</td>
                            </tr>
                            </tbody>
                        </table>
                        </div>
                        <div class="col-md-4">
                            <img class="img-thumbnail" src="{{user.profile.image.url}}" alt="profile-image">
                        </div>
                </div>
            </div>
        </div>
    </div>
</div>
{% endblock %}